import java.util.Scanner;

public class Test {
    public static void main(String[] args) {//打印输入行数的x图形
        while (true){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            for(int i = 1;i <= a;i++){//控制行
                for(int j = 1;j <= a;j++){//控制列
                    if((i==j)||(i+j==a+1)){//行列关系
                        System.out.print("*");
                    }else{
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
            sc.close();
        }
    }
    public static void main8(String[] args) {//求两个数的最大公约数
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();//a = 30
        int b = scan.nextInt();//b = 18
        while(a%b!=0){
            int c = a%b;
            a = b;
            b = c;

        }
        System.out.println("两个数的最大公因数是"+b);
    }
    public static void main7(String[] args) {//求一个整数中二进制1的个数
        Scanner scanner = new Scanner(System.in);
        int count=0;
        int i = scanner.nextInt();
        for(int a = 1;i != 0;a++){
            if((i & 1) !=0) {
                count++;
            }
            i = i>>>1;
        }
        System.out.println(count);
    }
    public static void main6(String[] args) {//判断一个数是否为素数
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
            int a = 2;
            for(;a <= Math.sqrt(i);a++){
                if(i % a == 0) {
                    break;
                }
            }
            if( a>Math.sqrt(i) ){
                System.out.print(i+"是素数");
            }

    }
    public static void main5(String[] args) {//1000~2000之间的闰年
        for(int a = 1000;a <= 2000;a++){
            if(a%4==0 & a%100!=0){
                System.out.println(a);
            }
        }
    }
    public static void main4(String[] args) {//1~100中出现了多少数字9
        int count = 0;
        for(int a = 1;a <= 100;a++){
            if(a / 10 == 9){
                count++;
            }
            if(a % 10 == 9){
                count++;
            }
        }
        System.out.println(count);
    }
    public static void main3(String[] args) {//打印1~100所有素数，方法三
        int i = 1;
        for(;i <= 100;i++){
            int a = 2;
            for(;a <= Math.sqrt(i);a++){
                if(i % a == 0) {
                    break;
                }
            }
            if( a>Math.sqrt(i) ){
                System.out.print(i+" ");
            }
        }
    }
    public static void main2(String[] args) {//打印1~100所有素数：方法二
        int i = 1;
        for(;i <= 100;i++){
            int a = 2;
            for(;a <= i/2;a++){
                if(i % a == 0) {
                    break;
                }
            }
            if( a>i/2 ){
                System.out.println(i);
            }
        }
    }
    public static void main1(String[] args) {//打印1~100所有素数:方法一
        int i = 1;
       for(;i <= 100;i++){
           int a = 2;
           for(;a < i;a++){
               if(i % a == 0) {
                   break;
               }
           }
           if( i == a ){
               System.out.println(i);
           }
        }
    }
}
